-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OV-43: Add PWA #47
OV-43: Add PWA #47
Conversation
"vite": "5.4.0" | ||
"vite": "5.4.0", | ||
"vite-plugin-pwa": "0.20.1", | ||
"workbox-core": "7.1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we need this package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I understand, the Vite PWA plugin will use the Workbox Core library to interact with and build the service worker.
https://vite-pwa-org.netlify.app/workbox/
3f64270
Please fix conflicts |
I configured the Vite PWA plugin with next settings:
registerType: 'autoUpdate'
: Ensures the service worker updates automatically in the background.injectRegister: false
: Disables automatic script injection, allowing for manual control if needed.pwaAssets
: Enabled asset generation to ensure all necessary icons and resources are created.manifest
: Defines the app's name, theme color, and description to enhance its appearance and identity on user devices.workbox
: Configured caching with specific patterns, cleanup of outdated caches, and immediate control of pages.devOptions
: Enabled the service worker in development, set up fallback handling, suppressed non-critical warnings, and used module type for the service worker.